﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Wicresoft.SMS.Data;
using System.Configuration;

namespace SMS.Gateway.Host.Test
{
    class ConnectString:IConnectStringProvider
    {
        private string _connectionString;
        public string ConnectionString
        {
            get 
            {
              if (_connectionString == null)
                {
                    try
                    {
                        _connectionString = ConfigurationManager.ConnectionStrings["smsConnector"].ConnectionString;
                    }
                    catch (Exception ex)
                    {  }
                }
                return _connectionString;
            }
        }

        public string HRConnectionString
        {
            get { throw new NotImplementedException(); }
        }
    }
}
